GetTrackDuration
The GetTrackDuration function returns the duration of a track. The duration corresponds to the ending time of the track in the movie's time coordinate system (remember that all tracks start at movie time 0).
pascal TimeValue GetTrackDuration (Track theTrack);
theTrack
- Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as
NewMovieTrack and GetMovieTrack (described on page 2-136 and page 2-188, respectively).
DESCRIPTION
The GetTrackDuration function returns a time value. This time value indicates the track's duration, and it is expressed in the time scale of the movie that contains the track.
ERROR CODES
| invalidTrack | -2009 | This track is corrupted or invalid |